<extend name="Public/base"/>
<block name="body">
	<div class="page-crumb">
		<div class="ui-ctrl ui-crumb"><span class="ui-crumb-node ui-crumb-node-first ui-crumb-node-last">游戏管理</span></div>
	</div>

	<div class="layui-main">
		<div class="list-meta">
			<div class="list-action">
				<a class="ui-link skin-add-link" href="javascript:;" onclick="PopModel.openFrame('/adGame/create');" target="">新建游戏物料</a>
			</div>
			<div class="list-filter">
			</div>

		</div>
		
		<!-- 数据列表 -->
		<table class="layui-table list-content-table" lay-skin="nob">
		  <colgroup>
			<col width="20">
			<col width="200">
			<col width="200">
			<col width="200">
			<col width="200">

		  </colgroup>
		  <thead class="list-table-head">
			<tr>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text ui-table-hcell-text-first">
						<input type="checkbox" class="ui-table-select-all" data-index="">
					</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">游戏名称</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">游戏渠道</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">游戏SdkID</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">游戏Logo</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">游戏描述</div>
				</th>

				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">操作</div>
				</th>
			</tr> 
		  </thead>
		  
		  <tbody class="list-table-body">
				<foreach name="data" item="ad_game">
				<tr>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<input type="checkbox" class="ui-table-multi-select" data-id="{$ad_game.id}">
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$ad_game.game_name}<span class="table-content-addition">ID: {$ad_game.id}</span></div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$ad_game.application_channel}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$ad_game.g_id}</div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-image">
							<img src="{$ad_game.game_logo}" />
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$ad_game.game_describe}</div></td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<span class="table-operation" data-command="modify" data-command-args="{$ad_game.id}">编辑</span>
							<span class="table-operation" data-command="remove" data-command-args="{$ad_game.id}">删除</span>
						</div>
					</td>
				</tr>
				</foreach>
		  </tbody>
		</table>
		{$page}
	</div>
	<script src="__BACKEND_STATIC__/js/adGame/adgame.js"></script>
</block>


